package com.example.activiti.demo.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.activiti.demo.dto.SysUserDto;
import com.example.activiti.demo.entity.SysUser;
import com.example.activiti.demo.mapper.SysUserMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author xiong
 * @since 2020-02-21
 */
@Service
public class SysUserService extends ServiceImpl<SysUserMapper, SysUser> {

    @Resource
    private SysUserMapper sysUserMapper;

    public List<SysUser> querySysUserPage(SysUserDto dto, Page page) {
        return sysUserMapper.querySysUserPage(page, dto);
    }

    public List<String> fingRoleCodeByUserId(String sysUserId) {
        return sysUserMapper.fingRoleCodeByUserId(sysUserId);
    }
}
